package com.shujia.wyh.day14.danlidemo1;

/*
    1、构造方法私有化
    2、提供类的成员变量，在类中创建好对象
    3、提供静态的成员方法让外界进行获取
 */
public class Student {
    private static Student student = new Student();

    private Student(){}

    public static Student getStudent(){
        return student;
    }
}
